package cn.edu.gxnu.dsa.lab;

import java.util.Scanner;

public class Lab5 {

	public static void main(String[] args) {
		int opCode = 4;
		Scanner sc = new Scanner(System.in);
		CapReverse lab5 = new CapReverse();
		
		while(opCode!=0){
			welcomMsg();
			opCode = sc.nextInt();
			switch(opCode){
			case 1:
				lab5.startSeqStack();
				
				break;
			case 2:
				lab5.startLinkStack();
				break;
			case 3:
				opCode = 0;
				break;
			}
			
		}
		sc.close();
	}
	
	static void welcomMsg() {
		System.out.println("+-------------------------------------+");
		System.out.println("|Lab:Reverse a sentence to uppercase  |");
		System.out.println("|Author: TANG Zhiyong  Version: 0.1   |");
		System.out.println("|Eclipse Public License - v 1.0       |");
		System.out.println("|Guangxi Normal University            |");
		System.out.println("|                                     |");
		System.out.println("|Please select the operation:         |");
		System.out.println("|1 using sequence stack               |");
		System.out.println("|2 using linked stack                 |");
		System.out.println("|3 close this demo                    |");
		System.out.println("+-------------------------------------+");
	}

}
